<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template.xhtml">

	<ui:define name="title">
		EComanda - Abrir Comanda
	</ui:define>

	<ui:define name="content">

		<h:form id="abrirComandaForm">

			<p:panel id="panel" header="Abrir Comanda"
				style="margin-top:auto; margin-bottom:auto; width:80%; margin-left: auto; margin-right: auto;">

				<p:messages id="messages" />

				<h:panelGrid columns="3">
					<h:outputLabel for="comandaInput" value="Comanda*: " />
					<p:inputMask id="comandaInput" value="#{comandaBean.comanda}"
						required="true" mask="9?9999999" maxlength="8">
						<f:converter converterId="comandaConverter" />
					</p:inputMask>
					<p:commandButton value="Abrir Comanda"
						actionListener="#{comandaBean.abrirComanda}" update="panel" />
				</h:panelGrid>
			</p:panel>

		</h:form>

	</ui:define>
</ui:composition>

</html>